﻿using System;
using System.Linq;
using DotNETStack.LinqToSqlDataProvider.Model;

namespace DotNETStack.LinqToSqlDataProvider.Data
{
    public static class UserExtensions
    {
        public static IQueryable<dns_User> WithEmail(this IQueryable<dns_User> q, String email)
        {
            return q.Where(p => p.Email == email);
        }

        public static IQueryable<dns_User> WithPassword(this IQueryable<dns_User> q, String password)
        {
            return q.Where(p => p.Password == password);
        }
    }
}